/* This file is part of SpaceSim.
 
 SpaceSim is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 SpaceSim is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with SpaceSim.  If not, see <http://www.gnu.org/licenses/>. */

#include <string>
#include <vector>

#include <SFML/Graphics.hpp>

#ifndef SHIP_H
#define SHIP_H

class Ship {
private:
	float Acceleration;
	float TurnAccel;
	std::string Name;
	sf::Image Image;
public:
	Ship(std::string _name, float _acc, float _tacc, std::string _image) {
		Name = _name;
		Acceleration = _acc;
		TurnAccel = _tacc;
		Image.LoadFromFile(_image);
	}
	float GetAcceleration() {
		return Acceleration;
	}
	float GetTurnAccel() {
		return TurnAccel;
	}
	sf::Image *GetImage() {	// NOTE: this returns a pointer!
		return &Image;
	}
};

void LoadShips();
extern std::vector<Ship> ShipTypes;

#endif